package com.work.device.feign;

import com.work.device.pojo.DeviceInfo;
import com.work.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "device")
public interface DeviceInfoFeign {


    /**
     * 根据设备id查询设备数据指标
     *
     * @param id 设备id
     * @return 设备信息
     */
    @GetMapping("/deviceInfo/get/{id}")
    public Result<List<DeviceInfo>> get(@PathVariable("id") Long id);
}
